    package org.fly.dao;

    import org.fly.bean.Customer;
    import org.fly.bean.query.CustomerQuery;
    import org.apache.ibatis.annotations.Param;
    import org.springframework.stereotype.Repository;

    import java.util.List;

    /**
    * Created by autoCode on 2018-02-19 20:23:59.
    */
    @Repository
    public interface CustomerDao {

    List<Customer> list(CustomerQuery query);

    long count(CustomerQuery query);

    void  insert(Customer data);

    void update(Customer data);

    Customer findById(String id);

    void delete(String id);

    List<Customer> listByIds(@Param(value = "ids") List<String> ids);

    Customer findByAccount(String account);

}
